<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>个人中心</title>
		<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0' />
		<link rel="stylesheet" href="css/personalCenter.css" />
		<link rel="stylesheet" type="text/css" href="css/hehua.css" />
		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script src="//res.qiaomukeji.com/js/chomoo-weixin.js?v=3"></script>
		<script type="text/javascript" src="js/moduls/islogin.js"></script>
		<script type="text/javascript" src="js/moduls/alliance.js" ></script>
		<script type="text/javascript" src="js/adapter.js"></script>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

	</head>

	<body>
		<div class="top">
			<div class="top-logo">
			</div>
			<div class="top-theme">
			</div>
			<div class="top-title">
			</div>

		</div>
		<div class="bottom">
			<div class="bottom-logo2">
			</div>
		</div>
		<div class="content">

			<div class="middlePath">
				<div class="title">
					<img src="img/personalCenter/personalCenter.png" alt="">
				</div>
				<div class="personalPic"><img src="img/chan_img.png" /></div>
				<div class="line"><img src="img/line.png" /></div>
				<div class="myAlliCount">
					<span>荷花数:</span>
					<span>{{myInfo.lotusNum}}</span>
					<span>联盟名称:</span>
					<span>{{teamInfos.name}}</span>
				</div>
				<div class="line"><img src="img/line.png" /></div>
				<div class="centerItems">
					<div class="item win"><img src="img/personalCenter/icon1.png" /></div>
					<div class="item award"><img src="img/personalCenter/icon2.png" /></div>
					<div class="item craft"><img src="img/personalCenter/icon3.png" /></div>
					<div class="item lotusNum"><img src="img/personalCenter/icon4.png" /></div>
					<div class="item address"><img src="img/personalCenter/icon5.png" /></div>
				</div>
			</div>
			<div class="backBtn">返回首页</div>

		</div>

		<script type="text/javascript">
			var app = new Vue({
			el: '.content',
			data: {
				myInfo: [],
				teamInfos: []
			}
		})

		//		var t_mine = {};
		var t_inviteUrl;
		//获取联盟
		getMyTeam(t_skey, function(_res) {
			app.teamInfos = _res.teamInfo;

			for(var j = 0; j < _res.teamUsers.length; j++) {
				if(_res.teamUsers[j]["uid"] == window.localStorage.getItem("uid")) {
					app.myInfo = _res.teamUsers[j];
				}
			}

			$(".content").css("opacity", 1);

		})

			$(".win").click(function() {
				location.href = "winRecord.html"
			})
			$(".award").click(function() {
				location.href = "awardRecord.html"
			})
			$(".craft").click(function() {
				location.href = "fiveCraft.html"
			})
			$(".lotusNum").click(function() {
				location.href = "lotuAccounts.html"
			})
			$(".address").click(function() {
				location.href = "address.html"
			})
			$(".backBtn").click(function() {
				location.href = "index.html"
			})
		</script>

	</body>

</html>